package com.ruoyi.project.jiaqin.wanttobuycollect.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.jiaqin.wanttobuy.domain.WantToBuy;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 求购收藏对象 want_to_buy_collect
 * 
 * @author LCL
 * @date 2021-10-22
 */
public class WantToBuyCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String memberId;

    /** 求购ID */
    @Excel(name = "求购ID")
    private String wantToBuyId;

    /** 收藏时间 */
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectAt;

    private WantToBuy wantToBuy;

    public WantToBuy getWantToBuy() {
        return wantToBuy;
    }
    public void setWantToBuy(WantToBuy wantToBuy) {
        this.wantToBuy = wantToBuy;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setMemberId(String memberId) 
    {
        this.memberId = memberId;
    }

    public String getMemberId() 
    {
        return memberId;
    }
    public void setWantToBuyId(String wantToBuyId) 
    {
        this.wantToBuyId = wantToBuyId;
    }

    public String getWantToBuyId() 
    {
        return wantToBuyId;
    }
    public void setCollectAt(Date collectAt) 
    {
        this.collectAt = collectAt;
    }

    public Date getCollectAt() 
    {
        return collectAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("wantToBuyId", getWantToBuyId())
            .append("collectAt", getCollectAt())
            .toString();
    }
}
